package agent

type Agent struct {
	reader Reader
}

func NewAgent(reader Reader) *Agent {
	agent := &Agent{}
	if reader != nil {
		agent.reader = reader
	}
	return agent
}

func (agent *Agent) SetReader(reader Reader) {
	agent.reader = reader
}

func (agent *Agent) Read() (int, []byte) {
	return agent.reader.Read()
}